Optimal. Leaf size=120 \[ -\frac {x^{m+1} (b c-a d) (a d (1-m)+b c (m+3)) \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {d x^2}{c}\right )}{2 c^2 d^2 (m+1)}+\frac {x^{m+1} (b c-a d)^2}{2 c d^2 \left (c+d x^2\right )}+\frac {b^2 x^{m+1}}{d^2 (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {463, 459, 364} \[ -\frac {x^{m+1} (b c-a d) (a d (1-m)+b c (m+3)) \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {d x^2}{c}\right )}{2 c^2 d^2 (m+1)}+\frac {x^{m+1} (b c-a d)^2}{2 c d^2 \left (c+d x^2\right )}+\frac {b^2 x^{m+1}}{d^2 (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 364
Rule 459
Rule 463
Rubi steps
\begin {align*} \int \frac {x^m \left (a+b x^2\right )^2}{\left (c+d x^2\right )^2} \, dx &=\frac {(b c-a d)^2 x^{1+m}}{2 c d^2 \left (c+d x^2\right )}-\frac {\int \frac {x^m \left (-2 a^2 d^2+(b c-a d)^2 (1+m)-2 b^2 c d x^2\right )}{c+d x^2} \, dx}{2 c d^2}\\ &=\frac {b^2 x^{1+m}}{d^2 (1+m)}+\frac {(b c-a d)^2 x^{1+m}}{2 c d^2 \left (c+d x^2\right )}-\frac {((b c-a d) (a d (1-m)+b c (3+m))) \int \frac {x^m}{c+d x^2} \, dx}{2 c d^2}\\ &=\frac {b^2 x^{1+m}}{d^2 (1+m)}+\frac {(b c-a d)^2 x^{1+m}}{2 c d^2 \left (c+d x^2\right )}-\frac {(b c-a d) (a d (1-m)+b c (3+m)) x^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {d x^2}{c}\right )}{2 c^2 d^2 (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 98, normalized size = 0.82 \[ \frac {x^{m+1} \left (-2 b c (b c-a d) \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {d x^2}{c}\right )+(b c-a d)^2 \, _2F_1\left (2,\frac {m+1}{2};\frac {m+3}{2};-\frac {d x^2}{c}\right )+b^2 c^2\right )}{c^2 d^2 (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (b^{2} x^{4} + 2 \, a b x^{2} + a^{2}\right )} x^{m}}{d^{2} x^{4} + 2 \, c d x^{2} + c^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x^{2} + a\right )}^{2} x^{m}}{{\left (d x^{2} + c\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.12, size = 0, normalized size = 0.00 \[ \int \frac {\left (b \,x^{2}+a \right )^{2} x^{m}}{\left (d \,x^{2}+c \right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x^{2} + a\right )}^{2} x^{m}}{{\left (d x^{2} + c\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {x^m\,{\left (b\,x^2+a\right )}^2}{{\left (d\,x^2+c\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{m} \left (a + b x^{2}\right )^{2}}{\left (c + d x^{2}\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________